package com.isunland.managesystem.entity;

import java.io.Serializable;

/**
 * 对象功能: 基础参数类
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/4/10 11:06
 */
public class BaseParams<T> implements Serializable {

  public static final int TYPE_DETAIL = 1;
  public static final int TYPE_ADD = 2;
  public static final int TYPE_EDIT = 3;

  private String id;
  private String dataStatus;
  private String dataStatusName;
  private String remark;
  private String title;
  private String name;
  private String code;
  private T item;
  /** 添加,修改,删除 */
  private int type;
  /** 来自于哪里 */
  private int from;

  public String getDataStatusName() {
    return dataStatusName;
  }

  public void setDataStatusName(String dataStatusName) {
    this.dataStatusName = dataStatusName;
  }

  public String getName() {
    return name;
  }

  public BaseParams<T> setName(String name) {
    this.name = name;
    return this;
  }

  public String getCode() {
    return code;
  }

  public BaseParams<T> setCode(String code) {
    this.code = code;
    return this;
  }

  public String getRemark() {
    return remark;
  }

  public BaseParams setRemark(String remark) {
    this.remark = remark;
    return this;
  }

  public int getFrom() {
    return from;
  }

  public BaseParams setFrom(int from) {
    this.from = from;
    return this;
  }

  public T getItem() {
    return item;
  }

  public BaseParams setItem(T item) {
    this.item = item;
    return this;
  }

  public String getId() {
    return id;
  }

  public BaseParams setId(String id) {
    this.id = id;
    return this;
  }

  public String getDataStatus() {
    return dataStatus;
  }

  public BaseParams setDataStatus(String dataStatus) {
    this.dataStatus = dataStatus;
    return this;
  }

  public int getType() {
    return type;
  }

  public BaseParams setType(int type) {
    this.type = type;
    return this;
  }

  public String getTitle() {
    return title;
  }

  public BaseParams setTitle(String title) {
    this.title = title;
    return this;
  }
}
